package com.fltry.mapdemo

import android.os.Bundle
import android.support.v7.app.AppCompatActivity


class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        val transaction = supportFragmentManager.beginTransaction()
        //目标Fragment替换原来的Fragment
        transaction.replace(R.id.map, MapFragment())
        transaction.commit()
    }

}
